package Form;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import Control.MySQLController;

public class Start {
	
	//Testing
	public static void main(String args []){
		//Set-up connection
		@SuppressWarnings("unused")
		MySQLController db = new MySQLController();
		
		//Set Look and Feel
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		//Create window
		JFrame frame = new JFrame();
		frame.setTitle("Login");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JPanel contentPane = new JPanel();
		
		
		
		Customer_LogIn start = new Customer_LogIn(frame);
		contentPane.add(start);
		frame.setContentPane(contentPane);
		
		//Dynamically set size
		frame.pack();
		frame.setSize(680, 450);
		
		//Set frame to middle
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
		
	}

}
